
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<title></title>
	</head>
	<body>
		<g:form action="index" method="get"  controller="teachingReport">
			<table style="width: 700px;">
				<tr>
					<td>
						From:
					</td>
					<td>
						<g:datePicker name="fromDate" precision="day"  value="${params.fromDate}"  />
					</td>
					<td>
						To:
					</td>
					<td>
						<g:datePicker name="toDate" precision="day"  value="${params.toDate}"  />
					</td>
					<td>
						<g:submitButton name="addComment" value="Find" />   
					</td>
				</tr>
			</table>
		</g:form>
		<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="name" title="${message(code: 'teachingSession.name.label', default: 'Name')}" />
					
						<g:sortableColumn property="content" title="${message(code: 'teachingSession.content.label', default: 'Content')}" />
					
						<g:sortableColumn property="time" title="${message(code: 'teachingSession.time.label', default: 'Time')}" />
					
						<g:sortableColumn property="type" title="${message(code: 'teachingSession.type.label', default: 'Type')}" />
					
						<th><g:message code="teachingSession.programCourse.label" default="Program Course" /></th>
					
						<th><g:message code="teachingSession.staff.label" default="Staff" /></th>
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${teachingReportInstanceList}" status="i" var="teachingSessionInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td>${fieldValue(bean: teachingSessionInstance, field: "name")}</td>
					
						<td>${fieldValue(bean: teachingSessionInstance, field: "content")}</td>
					
						<td><g:formatDate date="${teachingSessionInstance.time}" /></td>
					
						<td>${fieldValue(bean: teachingSessionInstance, field: "type")}</td>
					
						<td>${fieldValue(bean: teachingSessionInstance, field: "programCourse")}</td>
					
						<td>${fieldValue(bean: teachingSessionInstance, field: "staff")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${teachingReportInstanceTotal}" />
			</div>
	</body>
</html>